package com.pro.ydl.CommonFunction;

import com.pro.ydl.R;

import android.app.Activity;
import android.media.AudioManager;
import android.media.SoundPool;
import android.media.SoundPool.OnLoadCompleteListener;

public class YDLButtonSound implements OnLoadCompleteListener{
    SoundPool MASoundPool;
    int iMASoundPoolMusic;
    public YDLButtonSound(Activity activity)
    {
		MASoundPool = new SoundPool(10, AudioManager.STREAM_SYSTEM, 5);
		iMASoundPoolMusic = MASoundPool.load(activity, R.raw.buttonwatersound, 1);
		MASoundPool.setOnLoadCompleteListener(this);
    }
	@Override
	public void onLoadComplete(SoundPool arg0, int arg1, int arg2) {
		// TODO Auto-generated method stub
		MASoundPool.play(iMASoundPoolMusic, 1, 1, 0, 0, 1);
	}
    
    
}
